#include <iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    string A,B;
    cin>>A>>B;
    bool bIfReverse = true;
    for(int i = 0; i<A.size(); i++)
    {
        if(A[i] != B[B.size()-1-i])
        {
            bIfReverse = false;
            break;
        }
    }
    if(bIfReverse)
    { 
        cout<< A <<" and "<<B <<" are reverse.";
    }
    else
    {
        cout<<A<<" and "<<B << " are not reverse.";
    }
}
